package com.dt.platform.domain.hr;

import com.github.foxnic.dao.entity.Entity;
import io.swagger.annotations.ApiModel;
import javax.persistence.Table;
import com.github.foxnic.sql.meta.DBTable;
import com.dt.platform.constants.db.HrTables.HR_LEARN_TASK;
import javax.persistence.Id;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.Transient;
import com.github.foxnic.api.swagger.EnumFor;
import org.github.foxnic.web.domain.hrm.Employee;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.foxnic.commons.lang.DataParser;
import java.util.Map;
import com.github.foxnic.dao.entity.EntityContext;
import com.dt.platform.domain.hr.meta.LearnTaskMeta;
import com.github.foxnic.sql.data.ExprRcd;



/**
 * 学习任务
 * <p>学习任务 , 数据表 hr_learn_task 的PO类型</p>
 * @author 金杰 , maillank@qq.com
 * @since 2024-09-30 12:06:07
 * @sign 20B4BAF7035D563E0EDDB73D49058095
 * 此文件由工具自动生成，请勿修改。若表结构或配置发生变动，请使用工具重新生成。
*/

@Table(name = "hr_learn_task")
@ApiModel(description = "学习任务 ; 学习任务 , 数据表 hr_learn_task 的PO类型")
public class LearnTask extends Entity {

	private static final long serialVersionUID = 1L;

	public static final DBTable TABLE =HR_LEARN_TASK.$TABLE;
	
	/**
	 * 主键：主键
	*/
	@Id
	@ApiModelProperty(required = true,value="主键" , notes = "主键" , example = "608293735792377861")
	private String id;
	
	/**
	 * 学习课程：学习课程
	*/
	@ApiModelProperty(required = false,value="学习课程" , notes = "学习课程" , example = "606133466727186437")
	private String learnId;
	
	/**
	 * 下发任务：下发任务
	*/
	@ApiModelProperty(required = false,value="下发任务" , notes = "下发任务" , example = "608293726728486917")
	private String learnReleaseId;
	
	/**
	 * 任务名称：任务名称
	*/
	@ApiModelProperty(required = false,value="任务名称" , notes = "任务名称" , example = "学习课程测试2")
	private String name;
	
	/**
	 * 任务状态：任务状态
	*/
	@ApiModelProperty(required = false,value="任务状态" , notes = "任务状态" , example = "cancel")
	private String status;
	
	/**
	 * 开始时间：开始时间
	*/
	@ApiModelProperty(required = false,value="开始时间" , notes = "开始时间")
	private Date startTime;
	
	/**
	 * 完成时间：完成时间
	*/
	@ApiModelProperty(required = false,value="完成时间" , notes = "完成时间")
	private Date finishTime;
	
	/**
	 * 用户：用户
	*/
	@ApiModelProperty(required = true,value="用户" , notes = "用户" , example = "590511680593592320")
	private String userId;
	
	/**
	 * 创建人ID：创建人ID
	*/
	@ApiModelProperty(required = false,value="创建人ID" , notes = "创建人ID" , example = "110588348101165911")
	private String createBy;
	
	/**
	 * 创建时间：创建时间
	*/
	@ApiModelProperty(required = false,value="创建时间" , notes = "创建时间" , example = "2024-09-24 04:02:10")
	private Date createTime;
	
	/**
	 * 修改人ID：修改人ID
	*/
	@ApiModelProperty(required = false,value="修改人ID" , notes = "修改人ID")
	private String updateBy;
	
	/**
	 * 修改时间：修改时间
	*/
	@ApiModelProperty(required = false,value="修改时间" , notes = "修改时间")
	private Date updateTime;
	
	/**
	 * 是否已删除：是否已删除
	*/
	@ApiModelProperty(required = true,value="是否已删除" , notes = "是否已删除" , example = "0")
	private Integer deleted;
	@Transient
	@EnumFor("deleted")
	private Boolean deletedBool;
	
	/**
	 * 删除人ID：删除人ID
	*/
	@ApiModelProperty(required = false,value="删除人ID" , notes = "删除人ID")
	private String deleteBy;
	
	/**
	 * 删除时间：删除时间
	*/
	@ApiModelProperty(required = false,value="删除时间" , notes = "删除时间")
	private Date deleteTime;
	
	/**
	 * version：version
	*/
	@ApiModelProperty(required = true,value="version" , notes = "version" , example = "1")
	private Integer version;
	
	/**
	 * 租户：租户
	*/
	@ApiModelProperty(required = false,value="租户" , notes = "租户" , example = "T001")
	private String tenantId;
	
	/**
	 * user：user
	*/
	@ApiModelProperty(required = false,value="user" , notes = "user")
	private Employee user;
	
	/**
	 * queryRole：queryRole
	*/
	@ApiModelProperty(required = false,value="queryRole" , notes = "queryRole")
	private String queryRole;
	
	/**
	 * learn：learn
	*/
	@ApiModelProperty(required = false,value="learn" , notes = "learn")
	private Learn learn;
	
	/**
	 * learnRelease：learnRelease
	*/
	@ApiModelProperty(required = false,value="learnRelease" , notes = "learnRelease")
	private LearnRelease learnRelease;
	
	/**
	 * 获得 主键<br>
	 * 主键
	 * @return 主键
	*/
	public String getId() {
		return id;
	}
	
	/**
	 * 设置 主键
	 * @param id 主键
	 * @return 当前对象
	*/
	public LearnTask setId(String id) {
		this.id=id;
		return this;
	}
	
	/**
	 * 获得 学习课程<br>
	 * 学习课程
	 * @return 学习课程
	*/
	public String getLearnId() {
		return learnId;
	}
	
	/**
	 * 设置 学习课程
	 * @param learnId 学习课程
	 * @return 当前对象
	*/
	public LearnTask setLearnId(String learnId) {
		this.learnId=learnId;
		return this;
	}
	
	/**
	 * 获得 下发任务<br>
	 * 下发任务
	 * @return 下发任务
	*/
	public String getLearnReleaseId() {
		return learnReleaseId;
	}
	
	/**
	 * 设置 下发任务
	 * @param learnReleaseId 下发任务
	 * @return 当前对象
	*/
	public LearnTask setLearnReleaseId(String learnReleaseId) {
		this.learnReleaseId=learnReleaseId;
		return this;
	}
	
	/**
	 * 获得 任务名称<br>
	 * 任务名称
	 * @return 任务名称
	*/
	public String getName() {
		return name;
	}
	
	/**
	 * 设置 任务名称
	 * @param name 任务名称
	 * @return 当前对象
	*/
	public LearnTask setName(String name) {
		this.name=name;
		return this;
	}
	
	/**
	 * 获得 任务状态<br>
	 * 任务状态
	 * @return 任务状态
	*/
	public String getStatus() {
		return status;
	}
	
	/**
	 * 设置 任务状态
	 * @param status 任务状态
	 * @return 当前对象
	*/
	public LearnTask setStatus(String status) {
		this.status=status;
		return this;
	}
	
	/**
	 * 获得 开始时间<br>
	 * 开始时间
	 * @return 开始时间
	*/
	public Date getStartTime() {
		return startTime;
	}
	
	/**
	 * 设置 开始时间
	 * @param startTime 开始时间
	 * @return 当前对象
	*/
	public LearnTask setStartTime(Date startTime) {
		this.startTime=startTime;
		return this;
	}
	
	/**
	 * 获得 完成时间<br>
	 * 完成时间
	 * @return 完成时间
	*/
	public Date getFinishTime() {
		return finishTime;
	}
	
	/**
	 * 设置 完成时间
	 * @param finishTime 完成时间
	 * @return 当前对象
	*/
	public LearnTask setFinishTime(Date finishTime) {
		this.finishTime=finishTime;
		return this;
	}
	
	/**
	 * 获得 用户<br>
	 * 用户
	 * @return 用户
	*/
	public String getUserId() {
		return userId;
	}
	
	/**
	 * 设置 用户
	 * @param userId 用户
	 * @return 当前对象
	*/
	public LearnTask setUserId(String userId) {
		this.userId=userId;
		return this;
	}
	
	/**
	 * 获得 创建人ID<br>
	 * 创建人ID
	 * @return 创建人ID
	*/
	public String getCreateBy() {
		return createBy;
	}
	
	/**
	 * 设置 创建人ID
	 * @param createBy 创建人ID
	 * @return 当前对象
	*/
	public LearnTask setCreateBy(String createBy) {
		this.createBy=createBy;
		return this;
	}
	
	/**
	 * 获得 创建时间<br>
	 * 创建时间
	 * @return 创建时间
	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	 * 设置 创建时间
	 * @param createTime 创建时间
	 * @return 当前对象
	*/
	public LearnTask setCreateTime(Date createTime) {
		this.createTime=createTime;
		return this;
	}
	
	/**
	 * 获得 修改人ID<br>
	 * 修改人ID
	 * @return 修改人ID
	*/
	public String getUpdateBy() {
		return updateBy;
	}
	
	/**
	 * 设置 修改人ID
	 * @param updateBy 修改人ID
	 * @return 当前对象
	*/
	public LearnTask setUpdateBy(String updateBy) {
		this.updateBy=updateBy;
		return this;
	}
	
	/**
	 * 获得 修改时间<br>
	 * 修改时间
	 * @return 修改时间
	*/
	public Date getUpdateTime() {
		return updateTime;
	}
	
	/**
	 * 设置 修改时间
	 * @param updateTime 修改时间
	 * @return 当前对象
	*/
	public LearnTask setUpdateTime(Date updateTime) {
		this.updateTime=updateTime;
		return this;
	}
	
	/**
	 * 获得 是否已删除<br>
	 * 是否已删除
	 * @return 是否已删除
	*/
	public Integer getDeleted() {
		return deleted;
	}
	
	/**
	 * 获得 是否已删除 的投影属性<br>
	 * 等价于 getDeleted 方法，获得对应的枚举类型
	 * @return 是否已删除
	*/
	@Transient
	public Boolean isDeleted() {
		if(this.deletedBool==null) {
			this.deletedBool=DataParser.parseBoolean(deleted);
		}
		return this.deletedBool ;
	}
	
	/**
	 * 设置 是否已删除
	 * @param deleted 是否已删除
	 * @return 当前对象
	*/
	@JsonProperty("deleted")
	public LearnTask setDeleted(Integer deleted) {
		this.deleted=deleted;
		this.deletedBool=DataParser.parseBoolean(deleted);
		return this;
	}
	
	/**
	 * 设置 是否已删除的投影属性，等同于设置 是否已删除
	 * @param deletedBool 是否已删除
	 * @return 当前对象
	*/
	@Transient
	public LearnTask setDeleted(Boolean deletedBool) {
		if(deletedBool==null) {
			this.deleted=null;
		} else {
			this.deleted=deletedBool?1:0;
		}
		this.deletedBool=deletedBool;
		return this;
	}
	
	/**
	 * 获得 删除人ID<br>
	 * 删除人ID
	 * @return 删除人ID
	*/
	public String getDeleteBy() {
		return deleteBy;
	}
	
	/**
	 * 设置 删除人ID
	 * @param deleteBy 删除人ID
	 * @return 当前对象
	*/
	public LearnTask setDeleteBy(String deleteBy) {
		this.deleteBy=deleteBy;
		return this;
	}
	
	/**
	 * 获得 删除时间<br>
	 * 删除时间
	 * @return 删除时间
	*/
	public Date getDeleteTime() {
		return deleteTime;
	}
	
	/**
	 * 设置 删除时间
	 * @param deleteTime 删除时间
	 * @return 当前对象
	*/
	public LearnTask setDeleteTime(Date deleteTime) {
		this.deleteTime=deleteTime;
		return this;
	}
	
	/**
	 * 获得 version<br>
	 * version
	 * @return version
	*/
	public Integer getVersion() {
		return version;
	}
	
	/**
	 * 设置 version
	 * @param version version
	 * @return 当前对象
	*/
	public LearnTask setVersion(Integer version) {
		this.version=version;
		return this;
	}
	
	/**
	 * 获得 租户<br>
	 * 租户
	 * @return 租户
	*/
	public String getTenantId() {
		return tenantId;
	}
	
	/**
	 * 设置 租户
	 * @param tenantId 租户
	 * @return 当前对象
	*/
	public LearnTask setTenantId(String tenantId) {
		this.tenantId=tenantId;
		return this;
	}
	
	/**
	 * 获得 user<br>
	 * user
	 * @return user
	*/
	public Employee getUser() {
		return user;
	}
	
	/**
	 * 设置 user
	 * @param user user
	 * @return 当前对象
	*/
	public LearnTask setUser(Employee user) {
		this.user=user;
		return this;
	}
	
	/**
	 * 获得 queryRole<br>
	 * queryRole
	 * @return queryRole
	*/
	public String getQueryRole() {
		return queryRole;
	}
	
	/**
	 * 设置 queryRole
	 * @param queryRole queryRole
	 * @return 当前对象
	*/
	public LearnTask setQueryRole(String queryRole) {
		this.queryRole=queryRole;
		return this;
	}
	
	/**
	 * 获得 learn<br>
	 * learn
	 * @return learn
	*/
	public Learn getLearn() {
		return learn;
	}
	
	/**
	 * 设置 learn
	 * @param learn learn
	 * @return 当前对象
	*/
	public LearnTask setLearn(Learn learn) {
		this.learn=learn;
		return this;
	}
	
	/**
	 * 获得 learnRelease<br>
	 * learnRelease
	 * @return learnRelease
	*/
	public LearnRelease getLearnRelease() {
		return learnRelease;
	}
	
	/**
	 * 设置 learnRelease
	 * @param learnRelease learnRelease
	 * @return 当前对象
	*/
	public LearnTask setLearnRelease(LearnRelease learnRelease) {
		this.learnRelease=learnRelease;
		return this;
	}

	/**
	 * 将自己转换成指定类型的PO
	 * @param poType  PO类型
	 * @return LearnTask , 转换好的 LearnTask 对象
	*/
	@Transient
	public <T extends Entity> T toPO(Class<T> poType) {
		return EntityContext.create(poType, this);
	}

	/**
	 * 将自己转换成任意指定类型
	 * @param pojoType  Pojo类型
	 * @return LearnTask , 转换好的 PoJo 对象
	*/
	@Transient
	public <T> T toPojo(Class<T> pojoType) {
		if(Entity.class.isAssignableFrom(pojoType)) {
			return (T)this.toPO((Class<Entity>)pojoType);
		}
		try {
			T pojo=pojoType.newInstance();
			EntityContext.copyProperties(pojo, this);
			return pojo;
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

	/**
	 * 克隆当前对象
	*/
	@Transient
	public LearnTask clone() {
		return duplicate(true);
	}

	/**
	 * 复制当前对象
	 * @param all 是否复制全部属性，当 false 时，仅复制来自数据表的属性
	*/
	@Transient
	public LearnTask duplicate(boolean all) {
		com.dt.platform.domain.hr.meta.LearnTaskMeta.$$proxy$$ inst = new com.dt.platform.domain.hr.meta.LearnTaskMeta.$$proxy$$();
		inst.setFinishTime(this.getFinishTime());
		inst.setUpdateTime(this.getUpdateTime());
		inst.setUserId(this.getUserId());
		inst.setVersion(this.getVersion());
		inst.setCreateBy(this.getCreateBy());
		inst.setDeleted(this.getDeleted());
		inst.setCreateTime(this.getCreateTime());
		inst.setUpdateBy(this.getUpdateBy());
		inst.setDeleteTime(this.getDeleteTime());
		inst.setName(this.getName());
		inst.setTenantId(this.getTenantId());
		inst.setLearnId(this.getLearnId());
		inst.setDeleteBy(this.getDeleteBy());
		inst.setStartTime(this.getStartTime());
		inst.setId(this.getId());
		inst.setLearnReleaseId(this.getLearnReleaseId());
		inst.setStatus(this.getStatus());
		if(all) {
			inst.setQueryRole(this.getQueryRole());
			inst.setLearn(this.getLearn());
			inst.setLearnRelease(this.getLearnRelease());
			inst.setUser(this.getUser());
		}
		inst.clearModifies();
		return inst;
	}

	/**
	 * 克隆当前对象
	*/
	@Transient
	public LearnTask clone(boolean deep) {
		return EntityContext.clone(LearnTask.class,this,deep);
	}

	/**
	 * 将 Map 转换成 LearnTask
	 * @param learnTaskMap 包含实体信息的 Map 对象
	 * @return LearnTask , 转换好的的 LearnTask 对象
	*/
	@Transient
	public static LearnTask createFrom(Map<String,Object> learnTaskMap) {
		if(learnTaskMap==null) return null;
		LearnTask po = create();
		EntityContext.copyProperties(po,learnTaskMap);
		po.clearModifies();
		return po;
	}

	/**
	 * 将 Pojo 转换成 LearnTask
	 * @param pojo 包含实体信息的 Pojo 对象
	 * @return LearnTask , 转换好的的 LearnTask 对象
	*/
	@Transient
	public static LearnTask createFrom(Object pojo) {
		if(pojo==null) return null;
		LearnTask po = create();
		EntityContext.copyProperties(po,pojo);
		po.clearModifies();
		return po;
	}

	/**
	 * 创建一个 LearnTask，等同于 new
	 * @return LearnTask 对象
	*/
	@Transient
	public static LearnTask create() {
		return new com.dt.platform.domain.hr.meta.LearnTaskMeta.$$proxy$$();
	}

	/**
	 * 从 Map 读取
	 * @param map 记录数据
	 * @param cast 是否用 DataParser 进行类型转换
	 * @return  是否读取成功
	*/
	public boolean read(Map<String, Object> map,boolean cast) {
		if(map==null) return false;
		if(cast) {
			this.setFinishTime(DataParser.parse(Date.class, map.get(LearnTaskMeta.FINISH_TIME)));
			this.setUpdateTime(DataParser.parse(Date.class, map.get(LearnTaskMeta.UPDATE_TIME)));
			this.setUserId(DataParser.parse(String.class, map.get(LearnTaskMeta.USER_ID)));
			this.setVersion(DataParser.parse(Integer.class, map.get(LearnTaskMeta.VERSION)));
			this.setCreateBy(DataParser.parse(String.class, map.get(LearnTaskMeta.CREATE_BY)));
			this.setDeleted(DataParser.parse(Integer.class, map.get(LearnTaskMeta.DELETED)));
			this.setCreateTime(DataParser.parse(Date.class, map.get(LearnTaskMeta.CREATE_TIME)));
			this.setUpdateBy(DataParser.parse(String.class, map.get(LearnTaskMeta.UPDATE_BY)));
			this.setDeleteTime(DataParser.parse(Date.class, map.get(LearnTaskMeta.DELETE_TIME)));
			this.setName(DataParser.parse(String.class, map.get(LearnTaskMeta.NAME)));
			this.setTenantId(DataParser.parse(String.class, map.get(LearnTaskMeta.TENANT_ID)));
			this.setLearnId(DataParser.parse(String.class, map.get(LearnTaskMeta.LEARN_ID)));
			this.setDeleteBy(DataParser.parse(String.class, map.get(LearnTaskMeta.DELETE_BY)));
			this.setStartTime(DataParser.parse(Date.class, map.get(LearnTaskMeta.START_TIME)));
			this.setId(DataParser.parse(String.class, map.get(LearnTaskMeta.ID)));
			this.setLearnReleaseId(DataParser.parse(String.class, map.get(LearnTaskMeta.LEARN_RELEASE_ID)));
			this.setStatus(DataParser.parse(String.class, map.get(LearnTaskMeta.STATUS)));
			// others
			this.setQueryRole(DataParser.parse(String.class, map.get(LearnTaskMeta.QUERY_ROLE)));
			this.setLearn(DataParser.parse(Learn.class, map.get(LearnTaskMeta.LEARN)));
			this.setLearnRelease(DataParser.parse(LearnRelease.class, map.get(LearnTaskMeta.LEARN_RELEASE)));
			this.setUser(DataParser.parse(Employee.class, map.get(LearnTaskMeta.USER)));
			return true;
		} else {
			try {
				this.setFinishTime( (Date)map.get(LearnTaskMeta.FINISH_TIME));
				this.setUpdateTime( (Date)map.get(LearnTaskMeta.UPDATE_TIME));
				this.setUserId( (String)map.get(LearnTaskMeta.USER_ID));
				this.setVersion( (Integer)map.get(LearnTaskMeta.VERSION));
				this.setCreateBy( (String)map.get(LearnTaskMeta.CREATE_BY));
				this.setDeleted( (Integer)map.get(LearnTaskMeta.DELETED));
				this.setCreateTime( (Date)map.get(LearnTaskMeta.CREATE_TIME));
				this.setUpdateBy( (String)map.get(LearnTaskMeta.UPDATE_BY));
				this.setDeleteTime( (Date)map.get(LearnTaskMeta.DELETE_TIME));
				this.setName( (String)map.get(LearnTaskMeta.NAME));
				this.setTenantId( (String)map.get(LearnTaskMeta.TENANT_ID));
				this.setLearnId( (String)map.get(LearnTaskMeta.LEARN_ID));
				this.setDeleteBy( (String)map.get(LearnTaskMeta.DELETE_BY));
				this.setStartTime( (Date)map.get(LearnTaskMeta.START_TIME));
				this.setId( (String)map.get(LearnTaskMeta.ID));
				this.setLearnReleaseId( (String)map.get(LearnTaskMeta.LEARN_RELEASE_ID));
				this.setStatus( (String)map.get(LearnTaskMeta.STATUS));
				// others
				this.setQueryRole( (String)map.get(LearnTaskMeta.QUERY_ROLE));
				this.setLearn( (Learn)map.get(LearnTaskMeta.LEARN));
				this.setLearnRelease( (LearnRelease)map.get(LearnTaskMeta.LEARN_RELEASE));
				this.setUser( (Employee)map.get(LearnTaskMeta.USER));
				return true;
			} catch (Exception e) {
				return false;
			}
		}
	}

	/**
	 * 从 Map 读取
	 * @param r 记录数据
	 * @param cast 是否用 DataParser 进行类型转换
	 * @return  是否读取成功
	*/
	public boolean read(ExprRcd r,boolean cast) {
		if(r==null) return false;
		if(cast) {
			this.setFinishTime(DataParser.parse(Date.class, r.getValue(LearnTaskMeta.FINISH_TIME)));
			this.setUpdateTime(DataParser.parse(Date.class, r.getValue(LearnTaskMeta.UPDATE_TIME)));
			this.setUserId(DataParser.parse(String.class, r.getValue(LearnTaskMeta.USER_ID)));
			this.setVersion(DataParser.parse(Integer.class, r.getValue(LearnTaskMeta.VERSION)));
			this.setCreateBy(DataParser.parse(String.class, r.getValue(LearnTaskMeta.CREATE_BY)));
			this.setDeleted(DataParser.parse(Integer.class, r.getValue(LearnTaskMeta.DELETED)));
			this.setCreateTime(DataParser.parse(Date.class, r.getValue(LearnTaskMeta.CREATE_TIME)));
			this.setUpdateBy(DataParser.parse(String.class, r.getValue(LearnTaskMeta.UPDATE_BY)));
			this.setDeleteTime(DataParser.parse(Date.class, r.getValue(LearnTaskMeta.DELETE_TIME)));
			this.setName(DataParser.parse(String.class, r.getValue(LearnTaskMeta.NAME)));
			this.setTenantId(DataParser.parse(String.class, r.getValue(LearnTaskMeta.TENANT_ID)));
			this.setLearnId(DataParser.parse(String.class, r.getValue(LearnTaskMeta.LEARN_ID)));
			this.setDeleteBy(DataParser.parse(String.class, r.getValue(LearnTaskMeta.DELETE_BY)));
			this.setStartTime(DataParser.parse(Date.class, r.getValue(LearnTaskMeta.START_TIME)));
			this.setId(DataParser.parse(String.class, r.getValue(LearnTaskMeta.ID)));
			this.setLearnReleaseId(DataParser.parse(String.class, r.getValue(LearnTaskMeta.LEARN_RELEASE_ID)));
			this.setStatus(DataParser.parse(String.class, r.getValue(LearnTaskMeta.STATUS)));
			return true;
		} else {
			try {
				this.setFinishTime( (Date)r.getValue(LearnTaskMeta.FINISH_TIME));
				this.setUpdateTime( (Date)r.getValue(LearnTaskMeta.UPDATE_TIME));
				this.setUserId( (String)r.getValue(LearnTaskMeta.USER_ID));
				this.setVersion( (Integer)r.getValue(LearnTaskMeta.VERSION));
				this.setCreateBy( (String)r.getValue(LearnTaskMeta.CREATE_BY));
				this.setDeleted( (Integer)r.getValue(LearnTaskMeta.DELETED));
				this.setCreateTime( (Date)r.getValue(LearnTaskMeta.CREATE_TIME));
				this.setUpdateBy( (String)r.getValue(LearnTaskMeta.UPDATE_BY));
				this.setDeleteTime( (Date)r.getValue(LearnTaskMeta.DELETE_TIME));
				this.setName( (String)r.getValue(LearnTaskMeta.NAME));
				this.setTenantId( (String)r.getValue(LearnTaskMeta.TENANT_ID));
				this.setLearnId( (String)r.getValue(LearnTaskMeta.LEARN_ID));
				this.setDeleteBy( (String)r.getValue(LearnTaskMeta.DELETE_BY));
				this.setStartTime( (Date)r.getValue(LearnTaskMeta.START_TIME));
				this.setId( (String)r.getValue(LearnTaskMeta.ID));
				this.setLearnReleaseId( (String)r.getValue(LearnTaskMeta.LEARN_RELEASE_ID));
				this.setStatus( (String)r.getValue(LearnTaskMeta.STATUS));
				return true;
			} catch (Exception e) {
				return false;
			}
		}
	}
}